package com.DongBing.controller;

import com.DongBing.common.utils.R;
import com.DongBing.service.feign.TestService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试方法远程调用
 */
@RestController
@RequiredArgsConstructor
@RequestMapping(value = "/ware/test")
public class AdminTestController {

    private final TestService service;

    @GetMapping(value = "/test")
    public R test(){
        return service.test();
    }

}



